package com.allwees.bs.module.fms.rest;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.allwees.bs.core.modelbase.vo.R;
import com.allwees.bs.module.core.rest.BoCrudApi;
import com.allwees.bs.module.fms.entity.SupplierSettleStatement;
import com.allwees.bs.module.fms.req.query.MerchantSettleStatementQueryReq;
import com.allwees.bs.module.fms.service.SupplierSettleStatementService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 商户结算单操作
 *
 * @author yangylsky
 * @since 2019-12-30
 *
 */
@RestController
@RequestMapping("/backstage/api/fms/merchant_settle_statement")
public class MerchantSettleStatementApi extends BoCrudApi<SupplierSettleStatement, SupplierSettleStatementService> {
    /**
     * 查询账户分页列表
     *
     * @param page
     * @param req
     * @return
     */
    @GetMapping("/page")
    public R page(Page<SupplierSettleStatement> page, MerchantSettleStatementQueryReq req) {
        IPage<SupplierSettleStatement> retPage = boService.findPage(page, req);
        return R.ok(retPage);
    }
}
